package com.ruoyi.base.mapper;

import java.util.List;
import com.ruoyi.base.domain.BaseWarehouse;

/**
 * 仓库Mapper接口
 * 
 * @author yepanpan
 * @date 2024-12-20
 */
public interface BaseWarehouseMapper 
{

    /**
     * 查询仓库
     *
     * @param name 仓库名
     * @return 仓库
     */
    public BaseWarehouse selectBaseWarehouseByName(String name);

    /**
     * 查询仓库
     * 
     * @param id 仓库主键
     * @return 仓库
     */
    public BaseWarehouse selectBaseWarehouseById(Long id);

    /**
     * 查询仓库列表
     * 
     * @param baseWarehouse 仓库
     * @return 仓库集合
     */
    public List<BaseWarehouse> selectBaseWarehouseList(BaseWarehouse baseWarehouse);

    /**
     * 新增仓库
     * 
     * @param baseWarehouse 仓库
     * @return 结果
     */
    public int insertBaseWarehouse(BaseWarehouse baseWarehouse);

    /**
     * 修改仓库
     * 
     * @param baseWarehouse 仓库
     * @return 结果
     */
    public int updateBaseWarehouse(BaseWarehouse baseWarehouse);

    /**
     * 删除仓库
     * 
     * @param id 仓库主键
     * @return 结果
     */
    public int deleteBaseWarehouseById(Long id);

    /**
     * 批量删除仓库
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBaseWarehouseByIds(Long[] ids);
}
